import request from "@/utils/request";
// 车务
export function list(params) {
  return request({
    url: "/car/carWarnConfig/list",
    method: "get",
    params
  });
}


export function carWarnConfig(data) {
  return request({
    url: "/car/carWarnConfig",
    method: "put",
    data
  });
}


//查询违章消息预警配置
export function queryConfig() {
  return request({
    url: "/carViolationMessage/queryConfig",
    method: "get",
  });
}

//保存违章消息预警配置
export function saveOrUpdateConfig(data) {
  return request({
    url: "/carViolationMessage/saveOrUpdateConfig",
    method: "post",
    data
  });
}

//查询GPS预警配置列表
export function gpsWarnConfig() {
  return request({
    url: "/chewu/gpsWarnConfig/list",
    method: "get",
  });
}
//新增GPS预警配置
export function gpsWarnConfigPost(data) {
  return request({
    url: "/chewu/gpsWarnConfig",
    method: "post",
    data
  });
}
